package com.trigsoft.utils;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo.State;

public class NetworkUtils
{
	public static boolean isWiFiActive(Context inContext)
	{
		ConnectivityManager conMan = (ConnectivityManager) inContext.getSystemService(Context.CONNECTIVITY_SERVICE);

		State wifi = conMan.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState();
		return (wifi == State.CONNECTED);
	}
}
